SUBDIRS = man resources src
bin_SCRIPTS = \
	tspcluster \
	tspservice \
	tspprofiler
EXTRA_DIST = \
	tspcluster.in \
	tspservice.in \
	tspprofiler.in

REWRITE = \
	sed -e "s|\@prefix\@|$(prefix)|g"       \
	    -e "s|\@pkglibdir\@|$(pkglibdir)|g" \
	    -e "s|\@bindir\@|$(bindir)|g"		\
	    -e "s|\@MONO\@|$(MONO)|g" 

$(bin_SCRIPTS): $(srcdir)/tspcluster.in $(srcdir)/tspservice.in Makefile
	$(REWRITE) $(srcdir)/$@.in > $@.tmp
	mv $@.tmp $@

CLEANFILES = \
	tspcluster \
	tspservice

DISTCLEANFILES = \
	configure \
	config.guess \
	config.sub \
	Makefile.in \
	install-sh \
	aclocal.m4 \
	INSTALL \
	COPYING \
	missing

